package com.homepage.service.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import jakarta.persistence.Lob;
import jakarta.validation.constraints.*;
import java.io.Serializable;
import java.util.Objects;

/**
 * A DTO for the {@link com.homepage.domain.CompanyLogo} entity.
 */
@Getter
@Setter
@ToString
public class CompanyLogoDTO implements Serializable {

    private Long id;

    @Lob
    private byte[] logo;

    private String logoContentType;

    private String companyId;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof CompanyLogoDTO)) {
            return false;
        }

        CompanyLogoDTO companyLogoDTO = (CompanyLogoDTO) o;
        if (this.id == null) {
            return false;
        }
        return Objects.equals(this.id, companyLogoDTO.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(this.id);
    }

}
